Sigmoid function

A mathematical function that “squishes” an input value into a constrained range, typically 0 to 1 or -1 to +1. That is, you can pass any number (two, a million, negative billion, whatever) to a sigmoid and the output will still be in the constrained range.1

The sigmoid function has several uses in machine learning, including:

Formula

The sigmoid function over an input number xx has the following formula:

sigmoid(x)=11+exsigmoid(x) = \frac{1}{1 + e^{-x}}

In machine learning, x is generally a weighted sum.1

Footnotes

  1. developers.google.com/machine-learning/glossary#sigmoid-function 2

2024 © ak